import { defHttp } from '/@/utils/http/axios';
const baseAPi = '/Device/';
/**
 * @description: 获取设备信息
 */
export function getequipmentinfo(data) {
  return defHttp.post({ url: `${baseAPi}getequipmentinfo`, data });
}
/**
 * @description: 读取参数
 */
export function readdownloadtags(data) {
  return defHttp.post({ url: '/CmdDownload/readdownloadtags', data });
}
/**
 * @description: 参数下发
 */
export function commanddownload(data) {
  return defHttp.post({ url: '/CmdDownload/commanddownload', data });
}
/**
 * @description: 读取下发结果
 */
export function afterdownloadinfo(data) {
  return defHttp.post({ url: '/CmdDownload/afterdownloadinfo', data });
}
/**
 * @description: 下发日志分页查询
 */
export function getdownloadrecord(data) {
  return defHttp.post({ url: '/CmdDownload/getdownloadrecord', data });
}
/**
 * @description: 下发日志明细
 */
export function getdownloaddetails(data) {
  return defHttp.post({ url: '/CmdDownload/getdownloaddetails', data });
}
/**
 * @description: 导出参数
 */

export function handledownLoad(data) {
  return defHttp.post(
    {
      url: '/CmdDownload/Export',
      data,
      responseType: 'blob',
    },
    {
      isReturnNativeResponse: true,
      isDownLoadUrl: true,
    },
  );
}
/**
 * @description: 合并数据
 */
export function mergedata(data) {
  return defHttp.post({ url: '/CmdDownload/mergedata', data });
}
